﻿@if(Request.IsAuthenticated) {
    string username=User.Identity.Name.ToString().Split('@')[0].ToString();
    if (username.Length >= 5)
    {
        username = username.Substring(0, 5);
    }
    @Html.ActionLink(username, "Index", "Account", null, new { data_icon = "gear", data_role = "button" })
}
else
{
    @Html.ActionLink("Log On", "LogOn", "Account", null, new { data_icon = "gear", data_role = "button" })
}
